package com.insmess.meeting.sdk.dto;

import java.util.List;

/**
 * 分页使用
 */
public class ImPage<T> {
    /**
     * 当前页码
     */
    private Integer current;

    /**
     * 每页大小
     */
    private Integer size;

    /**
     * 数据
     */
    private List<T> records;

    /**
     * 总数量
     */
    private Integer total;

    /**
     * 总页数
     */
    private Integer pages;

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getPages() {
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }

    @Override
    public String toString() {
        return "ImPage{" +
                "current=" + current +
                ", size=" + size +
                ", records=" + records +
                ", total=" + total +
                ", pages=" + pages +
                '}';
    }
}
